package com.vcvt.verify.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * Description: 树节点类
 *
 * @author by xionghaohua
 * @date 2020/9/9
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode implements Serializable {

   private Integer id;
   private Integer pid;
   private String name;
   private List<TreeNode> children;

   public TreeNode(Integer id, Integer pid, String name) {
       this.id = id;
       this.pid = pid;
       this.name = name;
   }
}
